
//
//  LTFReadLeftTableViewCell.m
//  NeteaseNews
//
//  Created by liutaifeng on 16/4/23.
//  Copyright © 2016年 liutaifeng. All rights reserved.
//

#import "LTFReadLeftTableViewCell.h"
#import "IsNight.h"
@implementation LTFReadLeftTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}
- (void)createView {
    self.myLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_myLabel];
    [_myLabel release];
}
- (void)layoutSubviews {
    [super layoutSubviews];
    if ([IsNight nowIsNight]) {
        self.contentView.backgroundColor = [IsNight nightColor];
        _myLabel.textColor = [IsNight textNightColor];
    }
    else {
        //_myLabel.textColor = [UIColor blackColor];
    }
    self.myLabel.frame = self.contentView.frame;
    //self.myLabel.textColor = [UIColor grayColor];
    self.myLabel.textAlignment = NSTextAlignmentCenter;
}
@end
